﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMSModel
{
    /// <summary>
    /// 投票选项
    /// </summary>
    public class Option
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 票数
        /// </summary>
        public int Votes { get; set; }
        /// <summary>
        /// 投票编号
        /// </summary>
        public int VotingId { get; set; }
        /// <summary>
        /// 投票
        /// </summary>
        public virtual Voting Voting { get; set; }

        public Option()
        {
            this.Id = int.MinValue;
            this.Votes = int.MinValue;
            this.VotingId = int.MinValue;
        }
    }
}
